import React, { useState } from 'react'

function Appsui() {
    const [input,setinput]=useState([4, 4, 1, 1, 1, 2, 2, 2, 2, 3])
    const getdata=(arr)=>{
        return [...new Set(arr)].sort((a,b)=>a-b)

    }
    const list=getdata(input)
  return (
    <div>
      <p>{JSON.stringify(list)}</p>
    </div>
  )
}

export default Appsui
